Repository navigation
node-info 0.28.0: Axera AX650N rows, R620+ GPU temperature, stable DXGI out-params - #41
Merged
Merged
Conversation
Detect PCI vendor 0x1f4b cards and list each as a kind "npu" accelerator row, not inference-ready and outside GPU telemetry, like the Coral and RKNPU rows. A single axcl-smi table call every 5 s (5 s timeout, never overlapping) feeds the card name, CMM pool capacity and usage, NPU utilization and temperature; the last good table is published for at most 20 s. A "--" NPU reading is reported as utilization_unavailable, never as 0. Without the CLI the card is still listed from PCI. Power is not reported by the card and is omitted. gpuStat gains VRAMTotal so a sampler can supply a capacity the static inventory does not know. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: dmmdea <4965968+dmmdea@users.noreply.github.com>
…arams
Two Windows node-info defects seen on a three-card host:
- No GPU temperature at all. NVIDIA-SMI 621.14 prints temperature.gpu
with decimals ("78.76"); the integer-only parse rejected every row, so
every card lost its temperature while power and utilization (parsed as
floats/ints) stayed. parseCelsius (beside parseWatts) accepts whole and
fractional degrees and rounds; the Linux collector uses it too.
- Intermittent "IDXGIFactory1::EnumAdapters1 failed; stopping enumeration
idx=0 hr=0x00000000" (hundreds per day). vtableCall receives
out-parameters as uintptr(unsafe.Pointer(&local)); without
//go:uintptrescapes the local stays on the goroutine stack, and a stack
move inside the call makes DXGI write to the old address, so the caller
sees S_OK with a nil adapter and the pass reports no adapters (the
temperature join and inventory refresh then work from an empty list).
go build -gcflags=-m: before "adapter does not escape", after "moved to
heap: adapter". Same directive as syscall.(*LazyProc).Call.
Signed-off-by: dmmdea <4965968+dmmdea@users.noreply.github.com>
…re fix Signed-off-by: dmmdea <4965968+dmmdea@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
node-info 0.28.0: three node-info changes, each measured on real hardware.
1. Axera AX650N accelerator rows (Linux)
An AX650N-based card (e.g. the M.2 "AX8850"; PCI
1f4b:0650) is listed inGPUs[]as an accelerator row (kind: "npu",inference_ready: false, never counted intelemetryValidor scheduling pressure), the same way Coral and RKNPU rows are.axcl-smitable call every 5 s (5 s timeout, never overlapping; last good table used for at most 20 s). The table's NPU column is the truthful utilization source (info --npuprints--at idle and a different line shape under load); a--in the column is no reading, never 0.axcl_run_model): idle 0 % → under load 77 / 93 / 91 / 93 % → idle; CMM used 18 → 34 MiB; temperature 35 → 37 °C, matchingaxcl-smi info --tempto the degree; the host's other rows were byte-identical to the running service.2. GPU temperature on R620+ NVIDIA drivers (Windows + Linux)
NVIDIA-SMI 621.14 prints
temperature.gpuwith decimals (78.76). The integer-only parse rejected every row, so every NVIDIA card on such a host showed no temperature while power and utilization still worked.parseCelsius(besideparseWatts) accepts whole and fractional degrees and rounds.temperature_celsiuson any. After (same cards, same minute): 49 / 60 / 79 °C vsnvidia-smi49.8 / 60.3 / 77.7 °C.3. Stable DXGI out-parameters (Windows)
vtableCalltakes out-parameters asuintptr(unsafe.Pointer(&local)). Without//go:uintptrescapesthe local stays on the goroutine stack; when the stack grows inside the call the runtime moves it and DXGI writes to the old address, so the caller seesS_OKwith a nil adapter: the recurring warningIDXGIFactory1::EnumAdapters1 failed; stopping enumeration idx=0 hr=0x00000000, which empties that pass's adapter list and temperature join.go build -gcflags=-m: beforeadapter does not escape, aftermoved to heap: adapter(same directive assyscall.(*LazyProc).Call).Gates
go test .native Windows: ok.go vetlinux/amd64, linux/arm64, darwin/arm64, windows/amd64: ok.🤖 Generated with Claude Code